package com.hngy.xpq.dianming;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity_lord extends AppCompatActivity implements View.OnClickListener {

    Button lord_one , lord_two , lord_three , lord_fove;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main_lord);

        lord_one = findViewById(R.id.bin_lord_01);
        lord_two = findViewById(R.id.bin_lord_02);
        lord_three = findViewById(R.id.bin_lord_03);
        lord_fove = findViewById(R.id.bin_lord_04);

        lord_one.setOnClickListener(this);
        lord_two.setOnClickListener(this);
        lord_three.setOnClickListener(this);
        lord_fove.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.bin_lord_01:
                Intent intent1 = new Intent(MainActivity_lord.this , MainActivity.class);
                startActivity(intent1);
                break;
            case R.id.bin_lord_02:
                Intent intent2 = new Intent(MainActivity_lord.this , MainActivity2.class);
                startActivity(intent2);
                break;
            case R.id.bin_lord_03:
                Intent intent3 = new Intent(MainActivity_lord.this , MainActivity4.class);
                startActivity(intent3);
                break;
            case R.id.bin_lord_04:
                Intent intent4 = new Intent(MainActivity_lord.this , MainActivity3.class);
                startActivity(intent4);
                break;
        }
    }
}